package com._复习;

import java.util.Random;

public class Test09 {
    public static void main(String[] args) {
        Random a = new Random();
        int[] arr= new int[10];
        int sum = 0 ;
        for (int i = 0; i < arr.length; i++) {
            arr[i]=a.nextInt(100000);
            sum += arr[i];
        }
        System.out.println(sum);
    }
}
